//
//  TPPutDataRequest.h
//  Tripvi
//
//  Created by xiaowuxiaowu on 2017/6/16.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Qiniu/QiniuSDK.h>
@interface TPPutDataRequest : NSObject
@property (nonatomic,strong,readonly)QNUploadManager *manager;
@property (nonatomic,copy,readonly)NSString *token;
@property (nonatomic,assign)BOOL isRetry;//是否重试

+(instancetype)sharePutDataRequest;

+(NSString *)getUrl:(NSString *)key;


/**
 断点发送文件

 @param file 文件路径
 @param key 文件名，自己命名
 @param progress 进度
 @param completionHandler 回调函数
 */
-(void)putFile:(NSString *)file key:(NSString *)key progressHandler:(QNUpProgressHandler)progress complete:(QNUpCompletionHandler)completionHandler;




/**
 上传数据

 @param data 二进制
 @param key 文件名
 @param completionHandler 回调函数
 */
-(void)putData:(NSData *)data key:(NSString *)key complete:(QNUpCompletionHandler)completionHandler;

@end
